# -*- coding: utf-8 -*-
"""
Created on Wed May 12 18:38:44 2021

@author: QCH
"""
import numpy as np

import matplotlib.pyplot as plt
loop_iters = 10
time_iters = 70


addname = 'pics0512_1819'
pi_ign_list   = np.load('F:/QCH_ignition_model/python/' + addname +'/pi_ign_list.npy')


pi_listx = np.arange(time_iters)


fig = plt.figure()
for i in range(loop_iters):  
    pi_listy = pi_ign_list[:,i]*100

    plt.plot(pi_listx , pi_listy)
    
# ax.set_xlabel('X') # 画出坐标轴
# ax.set_ylabel('Y')
plt.axis([-1,70,0,2.5])
plt.xlabel('timestep, delta = 5E-3 (s)')
plt.ylabel('burnt cell %')
plt.title(addname)
plt.show()

plt.savefig('F:\\QCH_ignition_model\\python' +'\\'+addname+'.png')